import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
export const DriversInfoStore = defineStore('driversInfo', () => {
    let CarOpen = ref(false)
    let PublicOpen = ref(false)
    let WalkOpen = ref(false)
    let FuncCarDriver = ref(false)
    let selectPoint = ref(null)
    let selectType = ref('')


    function SetCarOpen(value) {
        CarOpen.value = value
    }
    function SetFuncCarDriver(value) {
        FuncCarDriver.value = value
    }
    function SetSelectPoint(value) {
        selectPoint.value = value
    }
    function SetPublicOpen(value) {
        PublicOpen.value = value
    }
    function SetWalkOpen(value) {
        WalkOpen.value = value
    }
    function SetSelecType(value) {
        selectType.value = value
    }
    return {
        CarOpen, SetCarOpen,
        FuncCarDriver, SetFuncCarDriver,
        selectPoint, SetSelectPoint,
        PublicOpen, SetPublicOpen,
        WalkOpen, SetWalkOpen,
        selectType, SetSelecType,
    }
})